﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NCT.Framework;

public class AppSettings {
    public static readonly string ResourcesPath = ConfigUtils.GetValue("NCT.Resources.Path");
    public static readonly string ImagesPath = ConfigUtils.GetValue("NCT.Images.Path");
    public static string RootURL = ConfigUtils.GetValue("NCT.ApplicationUrl", "http://localhost:81/");
    public static string MailType = ConfigUtils.GetValue("viss.mail.type", "frontend.viss.vn");

    //Support mail
    public static string MailTo = "mailto:hotro@viss.vn?subject=Yêu cầu hỗ trợ&body=Hãy cung cấp đầy đủ thông tin%0A%0AHọ và Tên:%0ASố điện thoại:%0AĐịa chỉ email (đăng ký tại Viss):%0A";

    //Count Style Layout
    public static int StyleLayout = ConfigUtils.GetIntValue("Style.Layout.Count", 3);

    //Blast Length Limit
    public static int LengthBlast = ConfigUtils.GetIntValue("VISS.Length.Blast", 150);

    //Hobby Length Limit
    public static int LengthHobby = ConfigUtils.GetIntValue("VISS.Length.Hobby", 300);

    //Personal
    public static int MinHeight = ConfigUtils.GetIntValue("VISS.Height.Min", 50);
    public static int MaxHeight = ConfigUtils.GetIntValue("VISS.Height.Max", 250);
    public static int MinWeight = ConfigUtils.GetIntValue("VISS.Weight.Min", 20);
    public static int MaxWeight = ConfigUtils.GetIntValue("VISS.Weight.Max", 250);

    //Same Profile
    public static int SameProfileDisplayNumber = ConfigUtils.GetIntValue("VISS.SameProfile.DisplayNumber", 2);


    //Ftp Upload
    public static readonly string FtpUploadServer = ConfigUtils.GetValue("ftp.server");
    public static readonly string FtpUploaFolder = ConfigUtils.GetValue("ftp.folder");
    public static readonly string FtpUploadUser = ConfigUtils.GetValue("ftp.username");
    public static readonly string FtpUploadPassword = ConfigUtils.GetValue("ftp.password");

    //public static readonly string ImageStoreUploadServer = ConfigUtils.GetValue("http.server.upload","http://nct01:9995/VISS/User/");
    public static readonly string ImageStoreUploadServer = ConfigUtils.GetValue("http.server.upload", ImagesPath + "/images/users/");

    //Avatar
    public static int AvatarWidth = ConfigUtils.GetIntValue("VISS.Avatar.Width", 210);
    public static int AvatarHeight = ConfigUtils.GetIntValue("VISS.Avatar.Height", 261);
    public static int AvatarThumbWidth = ConfigUtils.GetIntValue("VISS.Avatar.Thumb.Width", 120);
    public static int AvatarThumbHeight = ConfigUtils.GetIntValue("VISS.Avatar.Thumb.Height", 120);
    public static int AvatarMinRequireWidth = ConfigUtils.GetIntValue("VISS.Avatar.Require.Min.Width", 200);
    public static int AvatarMinRequireHeight = ConfigUtils.GetIntValue("VISS.Avatar.Require.Min.Height", 200);
    public static string AvatarFLargeBlank = ConfigUtils.GetValue("VISS.Avatar.Large.Blank", ResourcesPath + "/images/avatar/avatar-f-large.jpg");
    public static string AvatarMLargeBlank = ConfigUtils.GetValue("VISS.Avatar.Large.Blank", ResourcesPath + "/images/avatar/avatar-m-large.jpg");
    public static string AvatarFSmallBlank = ConfigUtils.GetValue("VISS.Avatar.Small.Blank", ResourcesPath + "/images/avatar/avatar-f-small.jpg");
    public static string AvatarMSmallBlank = ConfigUtils.GetValue("VISS.Avatar.Small.Blank", ResourcesPath + "/images/avatar/avatar-m-small.jpg");

    //Search
    public static int SearchDisplayRecordLimit = ConfigUtils.GetIntValue("VISS.Search.DisplayRecord", 200);

    //Image
    public static int ImageWidth = ConfigUtils.GetIntValue("VISS.Image.Width", 600);
    public static int ImageHeight = ConfigUtils.GetIntValue("VISS.Image.Height", 600);
    public static int ImageThumbWidth = ConfigUtils.GetIntValue("VISS.Image.Thumb.Width", 145);
    public static int ImageThumbHeight = ConfigUtils.GetIntValue("VISS.Image.Thumb.Height", 145);
    public static int ImageLimit = ConfigUtils.GetIntValue("VISS.Image.Limit", 100);
    public static int ImageStoreCount = ConfigUtils.GetIntValue("NCT.ImageStore.Count", 2);

    //Paging
    public static int PageSize = ConfigUtils.GetIntValue("VISS.Paging", 8);
    public static int PageSizeOfSearchThumb = ConfigUtils.GetIntValue("VISS.Search.Paging.Thumb", 12);
    public static int PageSizeOfSearchDetail = ConfigUtils.GetIntValue("VISS.Search.Paging.Detail", 5);
    public static int PageSizeOfImage = ConfigUtils.GetIntValue("VISS.Image.Paging", 8);
    public static int PageSizeOfMessage = ConfigUtils.GetIntValue("VISS.Message.Paging", 6);
    public static int PageSizeOfInterestMeThumb = ConfigUtils.GetIntValue("VISS.InterestMe.Paging.Thumb", 12);
    public static int PageSizeOfInterestMeDetail = ConfigUtils.GetIntValue("VISS.InterestMe.Paging.Detail", 5);

    // Encrypt Key Secure
    public static readonly string EncryptKeyUrl = ConfigUtils.GetValue("NCT.EncryptKeyUrl", "VISSCAT");
    public static readonly string EncryptKeyLogoAdv = ConfigUtils.GetValue("NCT.EncryptKeyLogoAdv", "l231xsjdgoshdjshatqopsha");
    public static readonly string EncryptKeyCookie = ConfigUtils.GetValue("NCT.Cookie.Encryptkey", "l231xsjdgoshdjshatqopsha");

    //Setting
    public static readonly int FollowerLimit = ConfigUtils.GetIntValue("Viss.User.Follower.Limit", 5);
    public static readonly int VerifyDay = ConfigUtils.GetIntValue("Viss.User.VerifyDay", 5);
    public static readonly string KeySendMessage = ConfigUtils.GetValue("Viss.User.KeySendMessage", "VISS");
    public static readonly string NumberSendMessage = ConfigUtils.GetValue("Viss.User.NumberSendMessage", "8736");

    public static string SESSION_ANTISPAMTEXT = "SESSION_ANTISPAMTEXT";
    //IAM
    public static readonly string IAM300x450 = ConfigUtils.GetValue("iam.300x450", "http://local.iam.shop.nava.vn/site/300x450-1.html");
}
